<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>爱心</title>
  <link rel="icon" href="./images/love.png" type="image/x-icon" />
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      height: 100vh;
      width: 100vw;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(pink, #fff);
    }

    ul {
      list-style-type: none;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    li {
      margin-left: 10px;
      height: 30px;
      width: 30px;
      background-color: antiquewhite;
      border-radius: 10px;
      box-shadow: 0 0 1px 	#FF0000,
        0 0 2px #FFE4E1	,
        0 0 3px 	#FFF0F5,
        0 0 4px #F0F8FF,
        0 0 5px #E6E6FA;

    }

    li:nth-child(1) {
      animation: jump1 2s linear 0s infinite alternate;
    }

    li:nth-child(2) {
      background-color: yellow;
      animation: jump2 2s linear 0.1s infinite alternate;
    }

    li:nth-child(3) {
      background-color: pink;
      animation: jump3 2s linear 0.2s infinite alternate;
    }

    li:nth-child(4) {
      background-color: skyblue;
      animation: jump4 2s linear 0.3s infinite alternate;
    }

    li:nth-child(5) {
      background-color: rgb(250, 64, 64);
      animation: jump5 2s linear 0.4s infinite alternate;
    }

    li:nth-child(6) {
      background-color: skyblue;
      animation: jump4 2s linear 0.5s infinite alternate;
    }

    li:nth-child(7) {
      background-color: pink;
      animation: jump3 2s linear 0.6s infinite alternate;
    }

    li:nth-child(8) {
      background-color: yellow;
      animation: jump2 2s linear 0.7s infinite alternate;
    }

    li:nth-child(9) {
      animation: jump1 2s linear 0.8s infinite alternate;
    }

    @keyframes jump1 {

      30%,
      50% {
        height: 30px;
        transform: translateY(0);
      }

      70%,
      100% {
        height: 60px;
        transform: translateY(0);
      }
    }

    @keyframes jump2 {

      30%,
      50% {
        height: 30px;
        transform: translateY(0);
      }

      70%,
      100% {
        height: 90px;
        transform: translateY(0);
      }
    }

    @keyframes jump3 {

      30%,
      50% {
        height: 30px;
        transform: translateY(0);
      }

      70%,
      100% {
        height: 120px;
        transform: translateY(0);
      }
    }

    @keyframes jump4 {

      30%,
      50% {
        height: 30px;
        transform: translateY(0);
      }

      70%,
      100% {
        height: 150px;
        transform: translateY(30px);
      }
    }

    @keyframes jump5 {

      30%,
      50% {
        height: 30px;
        transform: translateY(0);
      }

      70%,
      100% {
        height: 180px;
        transform: translateY(60px);
      }
    }
  </style>
</head>

<body>
  <ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
  </ul>
</body>

</html>